package com.rex.saas.enums;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * ErrorCodeEnum
 *
 * @author zhusiyu
 **/
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public enum StrategyRecordStatusEnum {

    /**
     0 待执行，1 下发成功，-1 下发失败，2 部分执行成功，3 全部执行成功
     */
    Created(0, "待执行"),
    PUSHED(1, "下发成功"),
    PUSH_ERR(-1, "下发失败"),
    PART_SUCCESS(2, "部分执行成功"),
    ALL_SUCCESS(3, "全部执行成功"),
    CANCELED(-2, "手动取消"),

    ;
    /**
     *
     */
    private Integer code;
    /**
     * 信息
     */
    private String message;
}
